package com.cmfi.dao.userRoleAuthDao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.cmfi.domain.userRoleAuthEntity.UserAndRole;


// TODO 添加@Mapper
@Mapper
public interface UserRoleDao {

	@Select("select * from tbl_user_role")
	public UserAndRole findAll(Long id);

	@Insert("insert into tbl_user_role(userId,roleId) values(#{userId},#{roleId})")
	public int saveUserRole(UserAndRole userRole);
}
